package ly.count.java.sdk.wechat;

import com.alibaba.fastjson.JSONObject;
import ly.count.java.sdk.DeviceInfo;

/**
 * Created by Jack.Zhou on 2016/7/7.
 */
public class WechatDeviceInfo implements DeviceInfo {
    private String id;
    private String lang;
    private JSONObject metrics;

    @Override
    public String getMetrics() {
        return metrics == null ? "{}" : metrics.toJSONString();
    }

    public void setMetrics(JSONObject metrics) {
        this.metrics = metrics;
    }

    @Override
    //openid
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return user language
     */
    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }
}
